package cn.fzm.demo03;

import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.stereotype.Component;

/**
 * @author Dremeue
 * @create 2019/9/26 13:08
 **/
@Component(value = "myBook")
public class MyBook {
    public void before1() {
        System.out.println("before ...");
    }

    public void after1() {
        System.out.println("after ...");
    }

    public void around1(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
        System.out.println("之前执行的操作");

        proceedingJoinPoint.proceed();

        System.out.println("之后执行的操作");

    }

}
